package com.cg.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.concurrent.atomic.AtomicLong;

@Service
public class UserService {
    @Autowired
    private static IUserService userService;
    public static final AtomicLong loginAccountSequence = new AtomicLong(fetchLastSequenceFromDatabase());
    private static long fetchLastSequenceFromDatabase() {
        return 1; // 这是一个示例值，您应该替换为实际的数据库查询逻辑
    }
}
